package org.cosmact.designer.vxml.gefeditor.preference;

import org.cosmact.designer.vxml.gefeditor.VxmlGefEditorPlugin;
import org.eclipse.jface.preference.IPreferenceStore;

/**
 * Help to read the preference value in Vxml plugin preference store.
 * 
 *@author hsieh 234aini@gmail.com
 * 
 */
public class PreferenceReader {

	public static IPreferenceStore getPrefernceStore() {
		return VxmlGefEditorPlugin.getDefault().getPreferenceStore();
	}

	/**
	 * Just get the string item value
	 * 
	 * @param items
	 * @return
	 */
	public static String getItemValue(EPreferenceItems items) {
		return getPrefernceStore().getString(items.name());
	}
}
